<if condition="($daylist eq '') AND ($weeklist eq '')">

<else />
<div class="mod hotartical widget" id="artical">
	<h3>文章排行<span class="w_title">TOP ARTICLES</span></h3>
	<div class="bd">
		<div class="tabs">
			<a href="javascript:;" class="tab on" data-id="topArtical">日榜</a>
			<a href="javascript:;" class="tab" data-id="topWeekArtical">周榜</a>
		</div>
		<ul class="artical-top-num" id="topArtical">
			<volist name="daylist" id="data">
			<eq name="key" value="0">
			<li class="top_1">
				<span class="num">{$key+1}</span>
				<empty name="data.seo_title">
				<p class="title"><a href="{:U('article/'.$data['uuid'])}" target="_blank">{$data.title|str_cut=15}</a></p>
				<else />
				<p class="title"><a href="{:U('article/'.$data['uuid'])}" target="_blank">{$data.seo_title|str_cut=15}</a></p>
				</empty>
				<p class="desc">{$data.description|str_cut=35}</p>
			</li>
			<else/>
			<li>
				<?php $uuid = get_useruuid($data[uid]);?>
				<span class="nm"><a href="{:U('writer/'.$uuid)}">{$data.uid|get_nickname}</a></span>
				<span class="num">{$key+1}</span>
				<empty name="data.seo_title">
				<p class="title"><a href="{:U('article/'.$data['uuid'])}" target="_blank">{$data.title|str_cut=15}</a></p>
				<else />
				<p class="title"><a href="{:U('article/'.$data['uuid'])}" target="_blank">{$data.seo_title|str_cut=15}</a></p>
				</empty>
			</li>
			</eq>
			</volist>
		</ul>
		<ul class="artical-top-num" id="topWeekArtical" style="display:none">
			<volist name="weeklist" id="data">
			<eq name="key" value="0">
			<li class="top_1">
				<span class="num">{$key+1}</span>
				<empty name="data.seo_title">
				<p class="title"><a href="{:U('article/'.$data['uuid'])}" target="_blank">{$data.title|str_cut=15}</a></p>
				<else />
				<p class="title"><a href="{:U('article/'.$data['uuid'])}" target="_blank">{$data.seo_title|str_cut=15}</a></p>
				</empty>
				<p class="desc">{$data.description|str_cut=35}</p>
			</li>
			<else/>
			<li>
				<?php $uuid = get_useruuid($data[uid]);?>
				<span class="nm"><a href="{:U('writer/'.$uuid)}">{$data.uid|get_nickname}</a></span>
				<span class="num">{$key+1}</span>
				<empty name="data.seo_title">
				<p class="title"><a href="{:U('article/'.$data['uuid'])}" target="_blank">{$data.title|str_cut=15}</a></p>
				<else />
				<p class="title"><a href="{:U('article/'.$data['uuid'])}" target="_blank">{$data.seo_title|str_cut=15}</a></p>
				</empty>
			</li>
			</eq>
			</volist>
		</ul>
	</div>
</div>
</if>